package com.hxzy.mapper;

import com.hxzy.controller.seckill.req.SeckillReq;
import com.hxzy.entity.StoreCountVersion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 11452
* @description 针对表【store_count_version(乐观锁)】的数据库操作Mapper
* @createDate 2023-09-11 16:35:44
* @Entity com.hxzy.entity.StoreCountVersion
*/
public interface StoreCountVersionMapper extends BaseMapper<StoreCountVersion> {

    /**
     * 乐观锁
     * @param req 要扣库库
     * @param db  数据库
     * @return
     */
    int updateSckillVersion(@Param(value = "req") SeckillReq req, @Param(value = "db") StoreCountVersion db);
}




